
#bin_PROGRAMS = test-policy test-policy-priority
lib_LTLIBRARIES = libipsec.la

libipsecdir = $(includedir)/libipsec
libipsec_HEADERS = libpfkey.h

man3_MANS = ipsec_set_policy.3 ipsec_strerror.3

AM_CFLAGS = @GLIBC_BUGS@
AM_YFLAGS = -d -p __libipsec
AM_LFLAGS = -P__libipsec -olex.yy.c

BUILT_SOURCES = policy_parse.h

libipsec_la_SOURCES = \
  ipsec_dump_policy.c \
  ipsec_get_policylen.c \
  ipsec_strerror.c \
  key_debug.c \
  pfkey.c \
  pfkey_dump.c \
  policy_parse.y \
  policy_token.l

# version is current:revision:age.
# See: http://www.gnu.org/manual/libtool-1.4.2/html_chapter/libtool_6.html#SEC32
libipsec_la_LDFLAGS = -version-info 0:1:0
libipsec_la_LIBADD = $(LEXLIB)

noinst_HEADERS = ipsec_strerror.h

#test_policy_SOURCES = test-policy.c
#test_policy_LDFLAGS = libipsec.la

#test_policy_priority_SOURCES = test-policy-priority.c
#test_policy_priority_LDFLAGS = libipsec.la

EXTRA_DIST = ${man3_MANS} test-policy.c
